package lab.craft;

//token一个简单实现,只有类型跟文本2个发生
public class SimpleToken implements Token {
    private TokenType type = null;
    private String text = null;

    @Override
    public TokenType getType() {
        return type;
    }

    @Override
    public String getText() {
        return text;
    }

    public void setText(String s) {
        text = s;
    }

    public void setType(TokenType t) {
        type = t;
    }
}
